package net.lab1024.sa.admin.module.business.flow.dao;

import java.util.List;
import net.lab1024.sa.admin.module.business.flow.domain.entity.FlwDeModelEntity;
import net.lab1024.sa.admin.module.business.flow.domain.form.FlwDeModelQueryForm;
import net.lab1024.sa.admin.module.business.flow.domain.vo.FlwDeModelVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * 流程设计 Dao
 *
 * @Author ADog
 * @Date 2025-10-06 20:16:41
 * @Copyright 1.0
 */

@Mapper
public interface FlwDeModelDao extends BaseMapper<FlwDeModelEntity> {

    /**
     * 分页 查询
     *
     * @param page
     * @param queryForm
     * @return
     */
    List<FlwDeModelVO> queryPage(Page page, @Param("queryForm") FlwDeModelQueryForm queryForm);

    /**
     * 根据 modelKey 查询
     *
     * @param modelKey
     * @return
     */
    FlwDeModelEntity selectByModelKey(String modelKey);
}
